﻿using System;
using _5E.Infrastructure.UnitOfWork;
using _5E.NHibernateRepository.Repository;
using NHibernate;
using WholesaleOnline.Model;
using WholesaleOnline.Model.Repository;

namespace WholesaleOnline.Repository
{
    public class AttributeRepository : RepositoryBase<WoAttribute, Guid>, IAttributeRepository
    {
        public AttributeRepository(IUnitOfWork uow) : base(uow) { }

        public override void AppendCriteria(ICriteria criteria)
        {
            criteria.CreateAlias("Type", "Type");
        }
    }
}
